package com.ymzwl;

import java.io.File;
import java.io.FileOutputStream;

public class TestFile {
	public static void main(String[] args) {
		try {
			File f1=new File("c://test.txt");
			FileOutputStream out=new FileOutputStream(f1);
			String s1="test string";
			for (int i = 0; i < 10000*10; i++) {
				out.write((s1+i+"\r\n").getBytes());
				System.out.println(i);
				//out.flush();
			}
			out.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
